Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 22 Aug 2020 13:17:07 +0000 (14:17 +0100)
committerPeter Michael Green <plugwash@debian.org>
Sat, 22 Aug 2020 13:17:07 +0000 (14:17 +0100)
commitc7815d041bf90d205dc2a5f6fcdf908c301ba6b7
tree620b9052c5c681c35d221dcb3275a6e24ac98eb3
parent4ea0c52e96bafa97b4af8298870ce65d903c204d
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas